﻿using WebApi.Commons.Helpers;
using WebApi.Models.Common;
using WebApi.Models.Views.Account;

namespace WebApi.Services.Interface
{
    /// <summary>
    /// 账号业务逻辑接口
    /// </summary>
    public interface IAccountService : IScopedService
    {
        /// <summary>
        /// 检查是否已经登录
        /// </summary>
        /// <param name="account">账号</param>
        /// <param name="password">密码</param>
        LoginResponse Login(string account, string password);

        /// <summary>
        /// 重置密码
        /// </summary>
        /// <returns></returns>
        ResultInfoModel ResetPassword(ResetPasswordRequest request, UserInfoModel user);
    }
}
